//
//  NMainNoImgCell.m
//  News
//
//  Created by zhangtao on 2018/10/7.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#import "NMainNoImgCell.h"

@implementation NMainNoImgCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(NArticleModel *)model{
    _titleLab.text = model.Abstract;
    _themeNameLab.text = model.TopicalName;
    _likeNumLab.text = [NSString stringWithFormat:@"%@",model.GoodNum];
    _commentNumLab.text = [NSString stringWithFormat:@"%@",model.CommentNum];
    _timeLab.text = model.CheckDate;
}

- (void)bindData:(MyFavoritesModel *)model
{
    self.titleLab.text = model.abstract;
    self.themeNameLab.text = model.topicalName;
    self.likeNumLab.text = [NSString stringWithFormat:@"%@",@(model.goodNum)];
    self.commentNumLab.text = [NSString stringWithFormat:@"%@",@(model.commentNum)];
    self.timeLab.text = [ACEPublicTool timeIntervalChangeToNowTime:model.checkDate];
}

@end
